﻿using System;
using System.Windows;
using MetroCalendar.ViewModels;
using Microsoft.Phone.Controls;

namespace MetroCalendar
{
    public partial class AnniversaryPage : PhoneApplicationPage
    {
        AnniversaryViewModel _AnniversaryViewModel;

        public AnniversaryPage()
        {
            InitializeComponent();

            _AnniversaryViewModel = new AnniversaryViewModel();
            this.DataContext = _AnniversaryViewModel;
        }

        private void OnRemindChecked(object sender, RoutedEventArgs e)
        {
            RemindStackPanel.Visibility = Visibility.Visible;
        }

        private void OnRemindUnchecked(object sender, RoutedEventArgs e)
        {
            RemindStackPanel.Visibility = Visibility.Collapsed;
        }

        private void OnOkClick(object sender, EventArgs e)
        {
            this.NavigationService.GoBack();
        }

        private void OnCancelClick(object sender, EventArgs e)
        {
            this.NavigationService.GoBack();
        }
    }
}